package com.wanxi.util;

import java.util.Scanner;

public class NumSplit {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个三位数的整数");
        int num = scanner.nextInt();
//        num=234;
        int ge = num % 10;

        System.out.println("个位数为：" + ge);
        int shi = num / 10 % 10;
        System.out.println("shi位数为：" + shi);
        int bai = num / 100 % 10;
        System.out.println("bai位数为：" + bai);
        System.out.println("bai位数为：" + (1 + 2 + 3));


    }
}
